package cn.ddy.mapper;

import cn.ddy.beans.Product;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ddy
 * @create 2020-08-12 09:47:13
 */
public interface ProductMapper2 {

    /**
     * 根据商品id返回单个商品
     * @param pid
     * @return
     */
    @Select("select * from product where pid = #{pid}")
    Product getById(String pid);


}
